FluentEmogrifier\Vendor\Pelago\Emogrifier\CssInliner C

Total Complexity 114
Dependencies 10
Dependents 2
Total lines 1,005
Lines of code 423
Logical lines of code 256
Comment lines 407
Methods 43
Properties 11

Methods 43

Method Rating Maintainability Complexity Lines of code
inlineCss()
A
47 8 35
collateCssRules()
A
49 7 31
generateStyleStringFromDeclarationsArrays()
S
51 7 25
getNodesToExclude()
S
54 6 20
getCssFromAllStyleNodes()
S
57 5 17
hasUnsupportedPseudoClass()
S
59 5 14
getCssSelectorPrecedence()
S
56 4 17
parseCssDeclarationsBlock()
S
57 4 17
copyUninlinableCssToStyleNode()
S
60 4 13
existsMatchForCssSelector()
S
62 4 11
sortBySelectorPrecedence()
S
67 4 7
normalizeStyleAttributes()
S
58 3 15
removeImportantAnnotationFromNodeInlineStyle()
S
59 3 14
copyInlinableCssToStyleAttribute()
S
61 3 13
removeUnmatchablePseudoComponents()
S
57 2 16
replaceUnmatchableNotComponent()
S
67 3 7
normalizeStyleAttributesOfAllNodes()
S
68 3 8
logOrThrowPregLastError()
S
60 2 12
getCssSelectorConverter()
S
71 2 6
removeImportantAnnotationFromAllInlineStyles()
S
74 2 5
pregReplace()
S
67 2 8
getHeadElement()
S
67 2 7
removeUnsupportedOfTypePseudoClasses()
S
70 2 6
removeAllowedMediaType()
S
71 2 6
existsMatchForSelectorInCssRule()
S
69 2 7
getAllNodesWithStyleAttribute()
S
66 2 8
removeExcludedSelector()
S
71 2 6
selectorPartHasUnsupportedOfTypePseudoClass()
S
69 2 6
getMatchingUninlinableCssRules()
S
70 2 6
fillStyleAttributesWithMergedStyles()
S
67 2 7
attributeValueIsImportant()
S
78 1 3
setDebug()
S
77 1 4
determineMatchingUninlinableCssRules()
S
73 1 5
getMatchingUninlinableSelectors()
S
79 1 3
addExcludedSelector()
S
76 1 4
addAllowedMediaType()
S
76 1 4
removeSelectorComponents()
S
76 1 3
clearAllCaches()
S
78 1 3
disableStyleBlocksParsing()
S
76 1 4
addStyleElementToDocument()
S
65 1 9
disableInlineStyleAttributesParsing()
S
76 1 4
purgeVisitedNodes()
S
77 1 4
generateStyleStringFromSingleDeclarationsArray()
S
79 1 3